package com.ruoyi.college.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 实验项目实体类
 * 对应表：t_experiment_project
 * @author ruoyi
 * @date 2024-05-XX
 */
public class ExperimentProject extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 实验项目ID */
    private Long projectId;

    /** 指定课程ID（关联评分标准的课程安排ID） */
    //@NotNull(message = "指定课程ID不能为空")
    private Integer arrangementId;

    /** 关联课程编号 */
    private String courseId;

    /** 课程名称 */
//    @NotBlank(message = "课程名称不能为空")
    private String courseName;

    /** 所属学期 */
//    @NotBlank(message = "所属学期不能为空")
    private String semester;

    /** 实验项目名称 */
    //@NotBlank(message = "实验项目名称不能为空")
    private String projectName;

    /** 实验学时 */
    //@NotBlank(message = "实验学时不能为空")
    private String experimentPeriod;

    /** 实验序号 */
    //@NotBlank(message = "实验序号不能为空")
    private String experimentNumber;

    /** 实验安排时间 */
    private Date experimentTime;

    /** 报告提交截止时间 */
    private Date deadline;

    /** 实验目的 */
    private String purpose;

    /** 实验内容（富文本） */
    private String content;

    /** 附件路径 */
    private String attachment;

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Integer getArrangementId() {
        return arrangementId;
    }

    public void setArrangementId(Integer arrangementId) {
        this.arrangementId = arrangementId;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getSemester() {
        return semester;
    }

    public void setSemester(String semester) {
        this.semester = semester;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getExperimentPeriod() {
        return experimentPeriod;
    }

    public void setExperimentPeriod(String experimentPeriod) {
        this.experimentPeriod = experimentPeriod;
    }

    public String getExperimentNumber() {
        return experimentNumber;
    }

    public void setExperimentNumber(String experimentNumber) {
        this.experimentNumber = experimentNumber;
    }

    public Date getExperimentTime() {
        return experimentTime;
    }

    public void setExperimentTime(Date experimentTime) {
        this.experimentTime = experimentTime;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("projectId", getProjectId())
                .append("arrangementId", getArrangementId())
                .append("courseId", getCourseId())
                .append("courseName", getCourseName())
                .append("semester", getSemester())
                .append("projectName", getProjectName())
                .append("experimentPeriod", getExperimentPeriod())
                .append("experimentNumber", getExperimentNumber())
                .append("experimentTime", getExperimentTime())
                .append("deadline", getDeadline())
                .append("purpose", getPurpose())
                .append("content", getContent())
                .append("attachment", getAttachment())
                .append("createTime", getCreateTime())
                .toString();
    }
}